using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Update Is Connected</para>
    /// <para>Updates the IsConnected attribute on all the network features for the specified utility network based on connectivity.</para>
    /// <para>根据连通性更新指定公共设施网络的所有网络要素上的 IsConnected 属性。</para>
    /// </summary>    
    [DisplayName("Update Is Connected")]
    public class UpdateIsConnected : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public UpdateIsConnected()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Utility Network</para>
        /// <para>The utility network where the IsConnected attribute will be updated.</para>
        /// <para>将在其中更新 IsConnected 属性的公共设施网络。</para>
        /// </param>
        public UpdateIsConnected(object _in_utility_network)
        {
            this._in_utility_network = _in_utility_network;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Update Is Connected";

        public override string CallName => "un.UpdateIsConnected";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _out_utility_network];

        /// <summary>
        /// <para>Utility Network</para>
        /// <para>The utility network where the IsConnected attribute will be updated.</para>
        /// <para>将在其中更新 IsConnected 属性的公共设施网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Updated Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public UpdateIsConnected SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}